<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/24
 * Time: 14:45
 */
namespace Model;

use Shop\Model; //引入核心模型命名空间

if(!defined("SHOP")){
    header("Location: ../index.php");
}

//自定义模型，定义控制器需要的方法
class LoginModel extends Model{

    public function getAdmin(){
        $sql="select * from sh_admin limit 1";
        return $this->pdo_sel($sql);
    }

}